<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page isELIgnored ="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
	<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
	
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title><spring:message code="search.criteria.form.title" /> </title>
</head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><spring:message code="search.criteria.result.title" /> </title>
</head>
<body>
<form:form action="${flowExecutionUrl}" >
	<table>
		<thead>
			<tr>
				<th><spring:message code="search.criteria.form.last.name" /> </th>
				<th><spring:message code="search.criteria.form.first.name" /> </th>
				<th><spring:message code="search.criteria.result.detail" /> </th>
			<tr>
		</thead>
		<tbody>
		<c:forEach items="${persons}" var="person" >
			<tr>
				<td>${person.lastName}</td>
				<td>${person.firstName}</td>
				<td>
					<a href="${flowExecutionUrl}&_eventId=details&personId=${person.personId}" >plus d'informations</a>
				</td>
			</tr>
		</c:forEach>
		<tr>
			<td>
				<button type="submit"  name="_eventId_back" >back to results</button>
			</td>
		</tr>
		</tbody>
	</table>
</form:form>
</body>
</html>